<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui" xmlns:c="http://java.sun.com/jsp/jstl/core">
    <h:head>
        <title>Store Oraint</title>
        
        <div id="divCabecalho" style="font-size: 18px;" class="ui-widget ui-widget-header ui-corner-all">
            <p align="center"> Store Oraint </p>
        </div>
        
        <p:menubar id="mnuPrincipal" style="font-size: 11px">
            <p:submenu id="mnuArquivo" label="Arquivo" icon="ui-icon-document">
                <p:menuitem id="mniCalendario" value="Calendário" icon="ui-icon-calendar" url="#"/>
                <p:separator/>
                <p:menuitem id="mniLogoff" value="Logoff" icon="ui-icon-key" url="#"/>
                <p:menuitem id="mniArquivoSair" value="Sair" icon="ui-icon-close" url="#"/>
            </p:submenu>

            <p:submenu id="mnuIntegracao" label="Integração" icon="ui-icon-transferthick-e-w">
                <p:menuitem id="mniRegistros" value="Registros" icon="ui-icon-transferthick-e-w" url="#"/>                
                <p:separator id="mniSepIntegracoes"/>
                <p:menuitem id="mniTipos" value="Tipos" icon="ui-icon-tag" url="#"/>
                <p:menuitem id="mniFluxos" value="Fluxos" icon="ui-icon-shuffle" url="#"/>
            </p:submenu>

            <p:submenu id="mnuConfiguracao" label="Configuração" icon="ui-icon-gear">
                <p:menuitem id="mniUsuarios" value="Usuários" icon="ui-icon-person" url="#"/>
            </p:submenu>

            <p:submenu id="mnuSobre" label="Sobre" icon="ui-icon-info">
                <p:menuitem id="mniSobreOraint" value="Oraint" icon="ui-icon-info" url="#"/>
                <p:menuitem id="mniSobreStoreAutomacao" value="Store Automação" icon="ui-icon-info" url="http://www.storeautomacao.com.br" target="_blank"/>
            </p:submenu>

            <p:menuitem id="mniSair" value="Sair" icon="ui-icon-close" url="#"/>
        </p:menubar>
            
    </h:head>
    
    <h:body>
        <div id="divCorpo" style="font-size: 11px; height: 70%;">
            <p:tabView id="tbvJanelas" dynamic="true" cache="true" effect="fade" effectDuration="normal" style="font-size: 11px; height: 100%">
                <c:forEach items="#{janelaController.listJanela}" var="janela">  
                    <p:tab title="#{janela.titulo}" closable="true">  
                        <ui:include src="#{janela.url}"/>
                    </p:tab>
                </c:forEach>
            </p:tabView>
        </div>
        
        <div id="divRodape" style="font-size: 11px;" class="ui-widget ui-widget-header ui-corner-all">
            <p align="center"> Copyright 2012 - Store Automação.</p>
        </div>
    </h:body>
</html>